#pragma once
#include <Image.h>
#include <IGameObject.h>
class IVisible
{
private:
    Image *image;
    Vector2 renderSize, offset;
    bool visible = false;

public:
    IVisible(Image *image =nullptr, Vector2 renderSize = Vector2(), Vector2 offset = Vector2());
    Image *getImage();
    Vector2 getRenderSize();
    Vector2 getOffset();
    void setRenderSize(Vector2 val);
    void setOffset(Vector2 val);
    void setImage(Image *val);
    void render(SDL_Renderer *renderer);
    void setVisible(bool val);
    bool isVisible();
};